﻿package com.jfdesgagne.jfdesgagne09.shell.view.component {
	import flash.display.Sprite;
	import flash.display.MovieClip;
	import flash.text.TextFieldAutoSize;
	
	public class Loading extends Sprite {
		public var loadingText_mc:MovieClip;
		public var background_mc:MovieClip;
				
		public function init():void {
			this.alpha = 0;
			this.background_mc = new MovieClip();
			this.addChild(this.background_mc);
			this.loadingText_mc = new LoadingText();
			this.addChild(this.loadingText_mc);
			this.loadingText_mc.title_txt.autoSize = TextFieldAutoSize.LEFT;
			this.loadingText_mc.text_txt.autoSize = TextFieldAutoSize.LEFT;
			this.loadingText_mc.percent_txt.autoSize = TextFieldAutoSize.LEFT;
		}
		
		public function resize():void {
			this.loadingText_mc.x = (this.stage.stageHeight - this.loadingText_mc.height) / 2;
			this.loadingText_mc.y = (this.stage.stageWidth - this.loadingText_mc.width) / 2;
		}
	}
	
}